﻿using System;
using System.Collections.Generic;
using System.ComponentModel.DataAnnotations;
using System.ComponentModel.DataAnnotations.Schema;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace MiniErp.Entity.DataStreams.DOs
{
    /// <summary>
    /// 系统表实体
    /// </summary>
    [Table("Systems")]
    public class Systems
    {
        /// <summary>
        /// 系统编号
        /// </summary>
        [Key]
        [DatabaseGenerated(DatabaseGeneratedOption.Identity)]
        [ConcurrencyCheck]
        public int SystemsId { get; set; }
        /// <summary>
        /// 系统名称
        /// </summary>
        public string SystemsName { get; set; }
        /// <summary>
        /// 系统描述
        /// </summary>
        public string SystemsDescribe { get; set; }
        /// <summary>
        /// 系统API主路由
        /// </summary>
        public string SystemsRoute { get; set; }
        #region 导航属性
        /// <summary>
        /// 可操作本系统岗位集合(以及对应权限)
        /// </summary>
        public virtual List<JobsSystemsRights> JobsSystemsRights { get; set; }
        #endregion
    }
}
